# Contributor:
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=libnetfilter_acct
pkgver=1.0.3
pkgrel=3
pkgdesc="Userspace library providing interface to extended accounting infrastructure."
url="https://www.netfilter.org/projects/libnetfilter_acct/"
arch="all"
license="LGPL-2.1-or-later"
makedepends="libnfnetlink-dev libmnl-dev linux-headers"
subpackages="$pkgname-dev"
source="https://www.netfilter.org/projects/libnetfilter_acct/files/libnetfilter_acct-$pkgver.tar.bz2"
options="!check"

prepare() {
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="5ca332840663941182343fdc0d5e45116bba71a97a913db0b385ea37ef31a04f8267a2279b7a2862ce338c6eeb093bb3ef9908f57770e64acf5d2b2266d3bfe5  libnetfilter_acct-1.0.3.tar.bz2"
